package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjReportMapper;
import com.mind.invoice.domain.AjReport;
import com.mind.invoice.service.IAjReportService;

/**
 * 报告Service业务层处理
 * 
 * @author today
 * @date 2025-04-25
 */
@Service
public class AjReportServiceImpl implements IAjReportService 
{
    @Autowired
    private AjReportMapper ajReportMapper;

    /**
     * 查询报告
     * 
     * @param id 报告主键
     * @return 报告
     */
    @Override
    public AjReport selectAjReportById(Long id)
    {
        return ajReportMapper.selectAjReportById(id);
    }

    /**
     * 查询报告列表
     * 
     * @param ajReport 报告
     * @return 报告
     */
    @Override
    public List<AjReport> selectAjReportList(AjReport ajReport)
    {
        return ajReportMapper.selectAjReportList(ajReport);
    }

    /**
     * 新增报告
     * 
     * @param ajReport 报告
     * @return 结果
     */
    @Override
    public int insertAjReport(AjReport ajReport)
    {
        return ajReportMapper.insertAjReport(ajReport);
    }

    /**
     * 修改报告
     * 
     * @param ajReport 报告
     * @return 结果
     */
    @Override
    public int updateAjReport(AjReport ajReport)
    {
        return ajReportMapper.updateAjReport(ajReport);
    }

    /**
     * 批量删除报告
     * 
     * @param ids 需要删除的报告主键
     * @return 结果
     */
    @Override
    public int deleteAjReportByIds(Long[] ids)
    {
        return ajReportMapper.deleteAjReportByIds(ids);
    }

    /**
     * 删除报告信息
     * 
     * @param id 报告主键
     * @return 结果
     */
    @Override
    public int deleteAjReportById(Long id)
    {
        return ajReportMapper.deleteAjReportById(id);
    }
}
